/** 
 * Project Name: farm-core 
 * File Name: DoneProxyImpl.java 
 * Package Name: com.bugull.farm.core.frame.pool
 * Date: 2017年3月9日下午5:23:16 
 * Copyright (c) 2017, hadlinks All Rights Reserved. 
 * 
 */
package com.bugull.farm.core.frame.pool;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/** 
 * ClassName: DoneProxyImpl 
 * Function: DoneProxy的默认实现，输出任务成功和失败的日志.
 * date: 2017年3月9日 下午5:23:16  
 * 
 * @author songwei (songw@hadlinks.com)
 * @version 
 * @since JDK 1.8 
 */
public class DefaultDoneProxyImpl implements DoneProxy{

	private final Logger logger = LogManager.getLogger(DefaultDoneProxyImpl.class);
	
	@Override
	public void success() {
		System.out.println("任务执行成功!!!");
		logger.debug("任务执行成功!!!");
	}

	@Override
	public void failed() {
		System.out.println("任务执行失败!!!");
		logger.debug("任务执行失败!!!");
	}

}
